﻿@using giaoxuhaison.Models
@model giaoxuhaison.Models.VideoModels

@{
    ViewBag.Title = "ManageUsers";
    Layout = "~/Views/Admin/_LayoutAdmin.cshtml";
}

@*quan ly thong tin loi chua hang tuan*@

<script src="@Url.Content("~/Scripts/CommandGrid.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/TrackChange.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Common.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/grid.locale-en.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.jqGrid.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/tinymce/tinymce.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Admin/Video.js")" type="text/javascript"></script>

<script type="text/javascript">
    var GetAllInformPath = '@Url.Action("GetAllVideos", "Categories")';
    var dateIconURL = '@Url.Content("~/Images/calendar.gif")';
    var DeleteNewsPath = '@Url.Action("DeleteVideos", "Categories")'
</script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(false)
    <div class="Title">
        <img src="~/Images/lists.ico" align="absmiddle" />
        <bold>QUẢN LÝ VIDEOS</bold>
    </div>
    
    <div class="PanelBoder">
    </div>
    
    <div class="NewsAlls">
       @Html.HiddenFor(m => m.ImgVideoID)
        <div class="Column">
            <div class="divInput">
                @Html.LabelFor(m => m.Condition_Find, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.Condition_Find, new { @class = "Input" })                
            </div>            
        </div>
        
        <div class=" divButton">
            <input type="button" id="btnFind" class="btnCmd ui-button-header" value="Tìm kiếm" />
        </div>        
    </div>    
    
    <div class="NewsAlls">
        <div class="Column">
            <div class="divInput">
                @Html.LabelFor(m => m.Subject, new { @class = "lblInput" })
                @Html.TextAreaFor(m => m.Subject, new { @class = "textArea" })                
            </div>
            <div class="divInput">
                @Html.LabelFor(m => m.ImageContentPath, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.ImageContentPath, new { @class = "Input" })                
            </div>            
        </div>
        <div class="ColumnRight">
            <div class="divInput">
                @Html.LabelFor(m => m.CreationDate, new { @class = "lblInput" })
                @Html.TextBoxFor(m => m.CreationDate, new { @class = "datepicker", @readonly = "true" })
               @* <input type="text" id="PublishDate" readonly="true" class="datepicker" />*@
            </div>            
            <div class="divInput">
                @Html.CheckBoxFor(m => m.Locked)
                @Html.LabelFor(m => m.Locked, new { @class = "lblcheckbox" })                                
            </div> 
        </div>
        
        <div class="PanelBoder">
        </div>
       
        <div class=" divButton">
            <input type="button" id="btnRefresh" class="btnCmd ui-button-header" value="Làm mới"/>
            <input type="submit" id="btnUpDate" class="btnCmd ui-button-header" value="Cập nhật" />
            <input type="button" id="btnDelete" class="btnCmd ui-button-header" value="Xóa"/>
        </div>
    </div>
    
    <div class="divNewsAlls">
        <table id="grdData">
        </table>
        <!--Define Navigation bar under grid-->
        <div id="pager">
        </div>
    </div> 
    
}


